Automattic\WooCommerce\Admin\API\Reports\Segmenter B

Total Complexity 85
Dependencies 3
Dependents 0
Total lines 627
Lines of code 344
Logical lines of code 213
Comment lines 211
Methods 17
Properties 4

Methods 17

Method Rating Maintainability Complexity Lines of code
set_all_segments()
C
33 23 98
merge_segment_intervals_results()
A
46 8 47
fill_in_missing_segments()
A
49 9 31
merge_segment_totals_results()
S
50 6 32
prepare_selections()
S
57 6 17
reformat_intervals_segments()
S
51 5 28
assign_segments_to_intervals()
S
58 5 16
reformat_totals_segments()
S
54 4 21
segment_cmp()
S
65 4 9
get_product_related_segments()
S
66 3 7
get_order_related_segments()
S
67 3 7
get_segment_labels()
S
71 2 6
get_all_segments()
S
72 2 6
fill_in_missing_interval_segments()
S
72 2 5
__construct()
S
77 1 4
get_totals_segments()
S
72 1 5
add_intervals_segments()
S
72 1 5